package org.compiere.apps.form;

import java.awt.event.KeyEvent;

import javax.swing.JTextField;

public class zutils {

//	  jTextField.addKeyListener(new KeyAdapter()
//	  {
//	  });
	  
	   public void keyReleased(JTextField jtf, KeyEvent e)
	   {
	    String s = jtf.getText();
	    char [] ch = s.toCharArray();
	    for(int i = 0; i < ch.length; i++)
	     if(!Character.isDigit(ch [i]))
	      s = s.replace(ch [i], ' ');
	    jtf.setText(s.replace(" ", ""));
	   }
	  
	
}
